function main(){
	var work = document.getElementById("work").value;
	var deadline = document.getElementById("deadline").value;
	var fullname = document.getElementById("fullname").value;
	var phone = document.getElementById("phone").value;
	
	isValid = new Boolean(true);
	isValid = work != "" && deadline != "";
	isValid = isValid && fullname != "" && phone != "";
	if(isValid){
		document.request.submit();
	}
	else{
		document.getElementById("error").innerHTML = "<div class=\"alert alert-danger\"><a class=\"close\" href=\"#\" data-dismiss=\"alert\"></a>Request form: empty field(s)!</div>";
	}
}